package org.mx.dal.utils;

import java.util.List;

import org.springframework.beans.factory.annotation.Value;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 描述： Elastic配置对象
 *
 * @author john peng Date time 2018/7/20 下午4:34
 */
@Getter
@Setter
@ToString
public class ElasticConfigBean {
	@Value("${elastic.enabled: false}")
	private boolean enabled;
	@Value("#{'${elastic.basePackages: }'.split(',')}")
	private List<String> basePackages;
	@Value("${elastic.user: elastic}")
	private String user;
	@Value("${elastic.password: }")
	private String password;
	@Value("#{'${elastic.servers: }'.split(',')}")
	private List<String> servers;
	@Value("${elastic.sslCertFile: }")
	private String sslCertFile;
	@Value("${elastic.ignoreHostname: false}")
	private boolean ignoreHostname;
}
